]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
layout: Keep the top_window group above newly added chrome
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 26 Jun 2013 08:41:04 +0000 (10:41 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 26 Jun 2013 11:37:58 +0000 (13:37 +0200)
The top_window_group was introduced for popup windows that should
appear above system chrome, but as the group itself is just a child
of Main.uiGroup, chrome that is added after top_window_group will
still be stacked on top.
At least correct the stacking for actors added via addChrome().

https://bugzilla.gnome.org/show_bug.cgi?id=702338

js/ui/layout.js

index 68166ab063c02c981b7eade03514b731d42fe903..2444a2ab45e30990c20055e7c66c5ee1d61d5e48 100644 (file)
@@ -749,6 +749,8 @@ const LayoutManager = new Lang.Class({
     // and shown otherwise)
     addChrome: function(actor, params) {
         this.uiGroup.add_actor(actor);
+        if (this.uiGroup.contains(global.top_window_group))
+            this.uiGroup.set_child_below_sibling(actor, global.top_window_group);
         this._trackActor(actor, params);
     },